package com.java.androidmarket.service;

import com.java.androidmarket.entity.KillStock;
import com.java.androidmarket.entity.OrderGoods;

/**
 * description:
 * author:张腾
 * date:2021-06-01
 */
public interface KillStockService {

    KillStock getStock(int goodsId);

    boolean checkStock(int goodsId,int wantNums);

    int setLock(int goodsId,int lockNum,int version);

    void lockToSale(OrderGoods orderGoods);

    void reLock(OrderGoods orderGoods);

    int getRealStock(int killgoodsId);
}
